package com.wtc.enum_;

/**
 * @author 马可
 * @version 1.0
 * Enum课堂练习
 * 2023/5/7
 * IntelliJ IDEA
 */
public class EnumExercise01 {
    public static void main(String[] args) {
        System.out.println("==所有星期的信息如下==");
        Week[] values = Week.values();
        for (Week value : values) {
            System.out.println(value);
        }
    }
}
enum Week {
    MONDAY("星期一"), TUESDAY("星期二"), WEDNESDAY("星期三"), THURSDAY("星期四"),
    FRIDAY("星期五"), SATURDAY("星期六"), SUNDAY("星期日");
    private String date;

    Week(String date) {
        this.date = date;
    }

//    @Override
//    public String toString() {
//        return date;
//    }
}
